package com.winning.sx.microframework.common.util;

public class SqlTool {
    public static int sqlType = 2;//1.sqlserver2012,2.sqlserver2008,3.oracle,4.mysql
    public static String getSysTime() {
        switch (sqlType) {
            case 1:
                return "sysdatetime()";
            case 2:
                return "sysdatetime()";
            case 3:
                return "sysdate";
            default:
                return "null";
        }
    }

    public static String getTodayString() {
        return Tools.getSysDate("yyyy-MM-dd");
    }
    public static String getNowTimeString() {
        return Tools.getSysDate("yyyy-MM-dd HH:mm:ss");
    }
    public static String getNowTimeString2() {
        return Tools.getSysDate("yyyy年MM月dd日 HH:mm");
    }
}
